<template>
    <NTag :size="size" type="default">
        <i class="fa fa-tag"></i>
        v {{ version }}
    </NTag>
</template>

<script setup lang="ts">
import { useVersion } from '@/hooks'
import type { Prop, PropType } from 'vue'

// TODO: need to solve the problem that cant import package.json,refer naive-ui version tag solution

const version = useVersion

const props = defineProps({
    size: {
        type: String as PropType<'small' | 'medium' | 'tiny' | 'large'>,
        default: 'tiny',
    },
})
</script>
